package com.bruce.framework.protocol.http;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class DispatcherServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // 编写处理请求的逻辑
        // 承上启下作用
        new HttpServerHandler().handler(req, resp);
        // super.service(req, resp);
    }
}
